import os
if os.path.exists(r"d:/homework/chapter10"):
    print('pass')
else:
    os.makedirs(r"d:/homework/chapter10")
os.chdir(r"d:/homework/chapter10")
f=open("profile.josn",'w')
import json
dict={'name':'沈泽焙','stuId':'23003127','age':'19','height':'155','school':'sdpt'}
data = json.dumps(dict)
f.write(data)
f.close

